<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			for (var i = 0; i < 5; i++) {
				if (i == 3) {
					break; //退出循环
				}
				// console.log(i);
			}
			
			for (var i = 0; i < 5; i++) {
				if (i == 3) {
					continue; //退出本次循环
				}
				console.log(i);
			}
		</script>
	</body>
</html>
